<div class="filter">
  <input class="input" nz-input placeholder="请输入标题关键字" [(ngModel)]="key"/>
  <app-c-select class="app-c-select" [typeCode]="1" [addAll]="false" (onSelect)="onSelect($event)"></app-c-select>
  <span class="span">时间选择</span>
  <nz-range-picker class="nz-range-picker" [nzFormat]="app.dateFormat"></nz-range-picker>
  <span class="span">时间选择</span>
  <nz-month-picker class="nz-month-picker" [nzFormat]="app.dateFormat"></nz-month-picker>
  <app-input-select class="app-input-select"
                    (onSelectKey)="onSelectKey($event)" (getKey)="getKey($event)"></app-input-select>
  <button class="button" nz-button nzType="default" (click)="update(null)">添加</button>

</div>

<nz-table
  [nzData]="dataList"
  [nzLoading]="app.isLoad"
  [nzShowPagination]="false"
  [nzBordered]="true"
>
  <thead>

  <tr>
    <th>编号</th>
    <th>姓名</th>
    <th>电话</th>
    <th>创建时间</th>
    <th>操作</th>
  </tr>

  </thead>

  <tbody>
  <tr *ngFor="let data of dataList">
    <td>{{data.adminId}}</td>
    <td>{{data.adminName}}</td>
    <td>{{data.adminPhone}}</td>
    <td>{{data.createTime|date:app.timeFormat}}</td>
    <td>
      <a class="tableBtn" (click)="update(data)">编辑</a>
      <a class="tableRedBtn" *ngIf="data.adminid!=1" (click)="del(data)">删除</a>
    </td>
  </tr>


  </tbody>


</nz-table>
